package example.service;

import example.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {
    int add(Supplier supplier);

    int upd(Supplier supplier);

    int del(Integer id);

    Supplier view(Integer id);

    List<Supplier> select(@Param("supCode") String supCode, @Param("supName") String supName, @Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    int count(@Param("supCode") String supCode, @Param("supName") String supName);

    List<Supplier> all();

}
